package cn.edu.cimv.service.impl;

import cn.edu.cimv.dao.entity.Flink;
import cn.edu.cimv.dao.mapper.FlinkMapper;
import cn.edu.cimv.service.FlinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 门铎 on 2016/6/27.
 */
@Service
public class FlinkServiceImpl implements FlinkService {
    @Autowired private FlinkMapper flinkMapper;
    @Override
    public void editFlink(Flink flink) {
        flinkMapper.insertFlink(flink);
    }

    @Override
    public List<Flink> queryFlink() {
        return flinkMapper.queryFlink();
    }

    @Override
    public void deleteFlink(int id) {
        flinkMapper.deleteFlink(id);
    }

    @Override
    public Flink queryFlinkById(int id) {
        return flinkMapper.queryFlinkById(id);
    }

    @Override
    public void updateFlink(Flink flink) {
        flinkMapper.updateFlink(flink);
    }
}
